<template>
    <div>
        login <button @click="handle">lo</button>
    </div>
</template>
<script>
export default {
  methods: {
    handle () {
      setTimeout(() => {
        localStorage.setItem('token', 'token字段')
        this.$router.back()
      }, 0)
    }
  }
}
</script>
